package com.example.xungeng2.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.xungeng2.mapper.WorkMapper;
import com.example.xungeng2.pojo.Work;
import com.example.xungeng2.service.WorkService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class WorkServiceImpl extends ServiceImpl<WorkMapper, Work> implements WorkService {

    @Override
    public Page<Work> selectPage(long page, long limit) {
        Page<Work> selectPage = baseMapper.selectPage(new Page<>(page, limit), null);
        return selectPage;
    }
}
